﻿using System.Collections.Generic;
using com.guojin.core.io;
using com.guojin.core.io.message;


namespace com.guojin.mj.net.message.game
{
    public class OnceBeforeRet: Message
    {
        public static int TYPE = 12 ;
        public static int ID =  46 ;

        public int chapterNum { get; set; }
        public string bigCardType { get; set; }
        public List<CurrentPlayerOnceBeforeRet> list;

        public void decode(Input _in)
        {
            chapterNum = _in.readInt();
            bigCardType = _in.readString();
            list = new List<CurrentPlayerOnceBeforeRet>();
            list = _in.readList<CurrentPlayerOnceBeforeRet>(_in);
        }

        public void encode(Output _out)
        {
           
        }

        public int getMessageId()
        {
            return ID;
        }

        public int getMessageType()
        {
            return TYPE;
        }

        public string toString()
        {
            return string.Format("OnceBeforeRet[chapterNum={0}, bigCardType={1}]", chapterNum, bigCardType);
        }
    }
}